You add either the macro or the VBA code to the report's On No Data event procedure. Thêm macro hoặc mã VBA để của báo cáo Trên không Data thủ tục sự kiện.
Cancel is an argument that is automatically passed to the event procedure and is always checked by Access when the event procedure completes. Hủy bỏ là một đối số đó được tự động chuyển qua thủ tục sự kiện và luôn kiểm tra bằng cách truy nhập khi hoàn tất thủ tục sự kiện.
Cancel is an argument that is automatically passed to the event procedure and is always checked by Access when the event procedure completes. Hủy bỏ là một đối số đó được tự động chuyển qua thủ tục sự kiện và luôn kiểm tra bằng cách truy nhập khi hoàn tất thủ tục sự kiện.
When you add a macro or VBA code to the On No Data event procedure, the macro or the VBA code runs whenever you open a report that contains no records. Khi bạn thêm macro hoặc mã VBA vào thủ tục sự kiện Trên không dữ liệu , macro hoặc mã VBA sẽ chạy khi bạn mở một báo cáo có chứa bản ghi không.
The following example associates the Click event with the "OK_DblClick" event procedure for the button named "OK" on the "Order Entry" form, if there is currently no association. Ví dụ sau đây liên kết sự kiện Click với thủ tục sự kiện "OK_Click" cho nút có tên là "OK" trên biểu mẫu "Mục nhập Đơn hàng" nếu hiện không có liên kết nào.